package com.test.logindemo2.dao;

import com.test.logindemo2.bean.Department;
import com.test.logindemo2.bean.Role;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/9 18:55
 */
public class Dao {
    public List<Department> getDepartments() {
        List<Department> depts = new ArrayList<>();
        depts.add(new Department(1001, "AAA"));
        depts.add(new Department(1002, "BBB"));
        depts.add(new Department(1003, "CCC"));
        depts.add(new Department(1004, "DDD"));
        depts.add(new Department(1005, "EEE"));

        return depts;
    }

    public List<Role> getRoles() {
        List<Role> roles = new ArrayList<>();

        roles.add(new Role(2001, "XXX"));
        roles.add(new Role(2002, "YYY"));
        roles.add(new Role(2003, "ZZZ"));
        roles.add(new Role(2004, "FFF"));
        return roles;
    }
}
